package com.dreamwhale.accelerator.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dreamwhale.accelerator.common.DataResult;
import com.dreamwhale.accelerator.entity.AlLineManage;
import com.dreamwhale.accelerator.entity.AlWithdrawalRules;
import com.dreamwhale.accelerator.mapper.AlWithdrawalRulesMapper;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 提现手续费 前端控制器
 * </p>
 *
 * @author Author
 * @since 2020-08-11
 */
@RestController
@RequestMapping("/user")
public class AlWithdrawalRulesController {

    @Resource
    private AlWithdrawalRulesMapper alWithdrawalRulesMapper;

    /**
     * 查询手续费
     * @param
     * @return
     */
    @RequestMapping("/selectAlWithdrawalRules")
    public DataResult selectAlWithdrawalRules() {
        QueryWrapper<AlWithdrawalRules> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().eq(AlWithdrawalRules::getWrDel,'0');

        return DataResult.ok(alWithdrawalRulesMapper.selectList(queryWrapper));
    }
}

